package util.redis;

/**
 * @author Huang zhibin
 * <p>
 * 2017年8月19日 下午5:44:03
 */
public class RedisConfig {

    private String host = "127.0.0.1";

    private int port = 6379;

    private int maxTotal = 1000;

    private int maxIdle = 50;

    private int maxWaitMillis = 120000;

    private String password;

    public RedisConfig() {
    }

    public RedisConfig(String host, int port) {
        this.host = host;
        this.port = port;
    }

    public String getHost() {
        return host;
    }

    public RedisConfig setHost(String host) {
        this.host = host;
        return this;
    }

    public int getPort() {
        return port;
    }

    public RedisConfig setPort(int port) {
        this.port = port;
        return this;
    }

    public int getMaxTotal() {
        return maxTotal;
    }

    public RedisConfig setMaxTotal(int maxTotal) {
        this.maxTotal = maxTotal;
        return this;
    }

    public int getMaxIdle() {
        return maxIdle;
    }

    public RedisConfig setMaxIdle(int maxIdle) {
        this.maxIdle = maxIdle;
        return this;
    }

    public int getMaxWaitMillis() {
        return maxWaitMillis;
    }

    public RedisConfig setMaxWaitMillis(int maxWaitMillis) {
        this.maxWaitMillis = maxWaitMillis;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public RedisConfig setPassword(String password) {
        this.password = password;
        return this;
    }

}
